FROM debian:12.11-slim
LABEL author=xiaoyilin
LABEL email=406735078@qq.com
ARG ZULU_V
ARG J_V
ENV TZ=Asia/Shanghai
ADD zulu${ZULU_V}-ca-jdk${J_V}-linux_x64.tar.gz /usr/local/
ENV JAVA_HOME=/usr/local/zulu${ZULU_V}-ca-jdk${J_V}-linux_x64
ENV PATH=$JAVA_HOME/bin:$PATH
WORKDIR /usr/local/
CMD ["java","-version"]

# https://www.azul.com/downloads/?version=java-8-lts&os=linux&architecture=x86-64-bit&package=jdk#zulu
# JAVA8
# docker build --build-arg ZULU_V=8.88.0.19 --build-arg J_V=8.0.462 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/zulu:8.0.462-d1211slim .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/zulu:8.0.462-d1211slim
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/zulu:8.0.462-d1211slim
# JAVA11
# docker build --build-arg ZULU_V=11.82.19 --build-arg J_V=11.0.28 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/zulu:11.0.28-d1211slim .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/zulu:11.0.28-d1211slim
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/zulu:11.0.28-d1211slim
# JAVA17
# docker build --build-arg ZULU_V=17.60.17 --build-arg J_V=17.0.16 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/zulu:17.0.16-d1211slim .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/zulu:17.0.16-d1211slim
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/zulu:17.0.16-d1211slim
# JAVA21
# docker build --build-arg ZULU_V=21.44.17 --build-arg J_V=21.0.8 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/zulu:21.0.8-d1211slim .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/zulu:21.0.8-d1211slim
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/zulu:21.0.8-d1211slim